import {request} from "./request";
export function Register(data){
    return request({
        url:'/api/auth/register',
        method:'post',
        data
    })
}
export function login(data){
    return request({
        url:'/api/auth/login',
        method:'post',
        data
    })
}
export function logout(){
    return request({
        // Fetch API 的 **Request**接口？用来表示资源请求。
        url:'/api/auth/logout',
        method:'post',
        
    })
}
export function getUser(){
    return request({
        url:'/api/user',
        method:'get'
    })
}
export function updatePwd(params){
    return request({
        url:'/api/auth/password/update',
        method:'post',
        params
    })
}
//request:请求 Register:注册